package com.joey.cloud.provider.dic;


import com.joey.cloud.communal.constant.ServiceConstant;
import com.joey.cloud.communal.utils.ResponseUtil;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 字典服务
 * @author joey
 */
@FeignClient(name = ServiceConstant.KEY_DIC,fallback = DicFeignFallback.class)
public interface DicFeignService {
    /**
     * 获取字典值文本
     * @param leftKey 左表标识
     * @param dicKeys 字典值标识
     * @return
     */
    @RequestMapping(value = "/business/dicRight/queryTextByKey",method = RequestMethod.GET)
    ResponseUtil queryTextByKey(@RequestParam("leftKey") String leftKey,
                                @RequestParam("dicKeys") String dicKeys);
}
